package com.woniuxy.mapper;

import com.woniuxy.entity.CommunicateComment;
import com.woniuxy.entity.CommunicateCommentExample;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;


/*
@author Jan
@create 2020-05-20 19:00

*/

public interface CommunicateCommentMapper {
    long countByExample(CommunicateCommentExample example);

    @Select("select count(1) from communicate_comment where communicate_id = #{id}")
    long selectCountByDetailId(Integer id);

    int deleteByExample(CommunicateCommentExample example);

    int deleteByPrimaryKey(Integer commentId);

    int insert(CommunicateComment record);

    int insertSelective(CommunicateComment record);

    List<CommunicateComment> selectByExample(CommunicateCommentExample example);

    CommunicateComment selectByPrimaryKey(Integer commentId);

    int updateByExampleSelective(@Param("record") CommunicateComment record, @Param("example") CommunicateCommentExample example);

    int updateByExample(@Param("record") CommunicateComment record, @Param("example") CommunicateCommentExample example);

    int updateByPrimaryKeySelective(CommunicateComment record);

    int updateByPrimaryKey(CommunicateComment record);

    List<Map<String,Object>> selectAllContextByDetailId(Integer id);
}